
import { getProfile } from '@/api/user'
export default {
  namespaced: true,
  state: {
    menus: []
  },
  mutations: {
    setMenus(state, value) {
      state.menus = value
    }
  },
  actions: {
    async getMenus(context, value) {
      const res = await getProfile()
      context.commit('setMenus', res.data.data)
    }
  }
}
